// 总监处理器（可以处理7天以内的请假）
public class Director implements Handler {
    @Override
    public boolean process(String request) {
        int days = Integer.parseInt(request.replace("请假", "").replace("天", ""));
        
        if (days <= 7) {
            System.out.println("总监批准了：" + request);
            return false;
        }
        System.out.println("总监无权批准，请假天数太长");
        return false;
    }
}
